package com.class05.ioc_02;

import lombok.ToString;
@ToString
public class UserService {
    private UserDao userDao;
    private String name;
    private Integer age;

    public UserService(UserDao userDao) {
        this.userDao = userDao;
    }
    public UserService(UserDao userDao, String name, Integer age) {
        this.userDao = userDao;
        this.name = name;
        this.age = age;
    }

    public UserService(Integer age) {
        this.age = age;
    }

//    @Override
//    public String toString() {
//        return "UserService{" +
//                "userDao=" + userDao +
//                ", name='" + name + '\'' +
//                ", age=" + age +
//                '}';
//    }
}
